<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>eBPLS Business Permit and Licensing System</title>
        <meta name="Author" content=" PAARV Solutions">
</head>
<body onLoad="javascript: _FRM.iLGU.focus();">
<form action='index.php?part=4&class_type=Preference&selMode=ebpls_nZip&is_desc=ASC' method="post" name='_FRM'>
<script language='Javascript' src='javascripts/default.js'></script>
<script language="Javascript">

function CheckValues()
{
	var _FRM = document._FRM;
	if (_FRM.iLGU.value == "") {
		alert("LGU Cannot Be Empty!!");
		_FRM.iLGU.focus();
        return false;
        }
	if (_FRM.iZIP.value == "" || isNaN(_FRM.iZIP.value) == true || _FRM.iZIP.value == 0) {
		alert("Enter valid ZIP Code!!");
		_FRM.iZIP.focus();
		_FRM.iZIP.select();
		return false;
	}
	if (_FRM.iZIP.value.length > 4) {
        alert("ZIP Code Exceeds Maximum Length!!");
		_FRM.iZIP.focus();
        return false;
        }
	_FRM.sb.value="Submit"
	_FRM.submit()
	return true;
}
function ClearValues()
{
	var _FRM = document._FRM;
	_FRM.iLGU.value = "";
	_FRM.iZIP.value = "";
	_FRM.sb.value = "";
	_FRM.bbo.value = "";
	alert("Transaction Cancelled!");
	_FRM.submit()
	return true;
}
                                                                                                 
function confdel(cc)
{
         var _FRM = document._FRM;
        doyou = confirm("Record Will Be Deleted, Continue?");
        if (doyou==true) {
            _FRM.bbo.value = cc;
            _FRM.confx.value = 1;
        } else {
            _FRM.confx.value=0;
            alert("Transaction Cancelled");
			_FRM.iLGU.focus();
			return false;
        }
        _FRM.submit();
        return true;
}
</script>
<input type=hidden name=confx value='<?php echo $confx; ?>'>
<input type=hidden name=part value="<?php echo $part;?>">
<input type=hidden name=class_type value="<?php echo $class_type;?>">
<input type=hidden name=selMode value="<?php echo $selMode;?>">
<input type=hidden name=bbo value="<?php echo $bbo;?>">
<input type=hidden name=com>
<input type=hidden name=sb>
<table border=0 width=100% align=center cellspacing=0 cellpadding=0>
<tr><td colspan=2 class=header align=center width=100%>REFERENCES</td></tr>
<tr>
        <td colspan=2 align=center>
</td>
</tr>
<tr><td colspan=2 class=header2 align=center width=100%>ZIP</td></tr>
<tr width=100%>
	<td> &nbsp </td>
</tr>
<tr width=100%>
	<td> &nbsp </td>
</tr>
<tr width=100%>
	<td align=right valign=top> LGU </td>
	<td align=left valign=top> &nbsp 
	<? echo get_select_lgu('iLGU',$iLGU);?>
	</td>
	<td> &nbsp </td>
</tr>
<tr width=100%>
	<td align=right valign=top> Zip Code </td>
	<td align=left valign=top> &nbsp <input type=text maxlength=4 name=iZIP class=text180 value='<?php echo $iZIP; ?>' maxlength="10"></td>
	<td> &nbsp </td>
</tr>
</table>
<table align=center border=0 cellspacing=0 cellpadding=0 width=100%>
<tr width=100%>
	<td align=center valign=top>&nbsp</td>
</tr>
<tr width=100%>
	<td align=center valign=top>
		<input type=button value=Save name='SubmitButton' onClick="javascript: CheckValues();">
		<input type=Button value=Cancel onClick='javascript: ClearValues();'>
		<input type=Reset value=Reset onClick="javascript: _FRM.iLGU.focus();">
		&nbsp<br><br></td>
</tr>
</table>
<?php 
include'pager/zip_page.php';
?>
                </tr>
        </table>
<tr>
<td colspan=2 align=center>
</td>
</tr>
</table>
</form>
</body>
</html>

